package cn.zysheep.singleton.demo1;

/**
 * @ClassName: Singleton
 * @Description: 饿汉式 单例模式
 * @Author: lyw
 * @Date: 2022/10/17 21:37
 */
public class Singleton {
    private static Singleton singleton = new Singleton();

    private Singleton() {}

    public static Singleton getInstance() {
        return singleton;
    }
}
